<?php
	class newsviewModel extends viewModel{
		public $table ="news";
		public $view = array(
			"category" => array(
				"type" => "inner",
				"field" => "catid,cname,pid",
				"on" => "news.catid = category.catid",
			),
			"user" => array(
            	"type" => "inner",
            	"on" => "news.uid = user.uid"
        	),
        	"news_data" => array(
            	"type" => "inner",
           	 	"on" => "news.id = news_data.nid",
        	)
		);

	}
?>